<%@ Page Language="C#" AutoEventWireup="true" CodeFile="calendar.aspx.cs" Inherits="calendar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Needham Checks Module - Calendar</title>
    <script type="text/javascript">
    function Cancel()
    {
		window.opener.focus();
		window.close();
    }
    
    function Ok()
    {
		var currentdate = document.getElementById("hfCurrentDate");
		window.opener.focus();
    	window.opener.selectdate(currentdate.value);
		window.close();
    }
    </script>

	<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
		<asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="Black" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="250px"
			NextPrevFormat="ShortMonth" Width="330px" BorderStyle="Solid" CellSpacing="1" OnSelectionChanged="Calendar1_SelectionChanged">
			<SelectedDayStyle BackColor="#333399" ForeColor="White" />
			<TodayDayStyle BackColor="#999999" ForeColor="White" />
			<OtherMonthDayStyle ForeColor="#999999" />
			<NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
			<DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" Height="8pt" />
			<TitleStyle BackColor="#333399" Font-Bold="True"
				Font-Size="12pt" ForeColor="White" BorderStyle="Solid" Height="12pt" />
			<DayStyle BackColor="#CCCCCC" />
		</asp:Calendar>
    
    					<table width="100%">
						<tr>
							<td align="left">
								<asp:Button ID="bCancel" OnClientClick="Cancel(); return false;" runat="server" Text="Cancel" CssClass="button" /></td>
							<td align="right">
								<asp:Button ID="bOk" OnClientClick="Ok(); return false;" runat="server" Text="Ok" CssClass="button" /></td>
						</tr>
					</table>

    </div>
		<asp:HiddenField ID="hfCurrentDate" runat="server" />
    </form>
</body>
</html>
